package cn.stylefeng.guns.modular.business.frequency.orderstatuschange.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.modular.business.frequency.orderstatuschange.entity.OrderStatusChange;
import cn.stylefeng.guns.modular.business.frequency.orderstatuschange.model.param.OrderStatusChangeParam;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * tt_order_status_change 服务类
 *
 * @author yujie
 * @date 2023/07/11 15:44
 */
public interface OrderStatusChangeService extends IService<OrderStatusChange> {

    /**
     * 分页查询tt_order_status_change
     *
     * @author yujie
     * @date 2023/07/11 15:44
     */
    PageResult<OrderStatusChange> page(OrderStatusChangeParam orderStatusChangeParam);

    void saveOrderStatusChange(Integer beforeStatus,Integer afterStatus,Long orderId,String remark);

    /**
     * 查询所有tt_order_status_change
     *
     * @author yujie
     * @date 2023/07/11 15:44
     */
    List<OrderStatusChange> list(OrderStatusChangeParam orderStatusChangeParam);

    /**
     * 添加tt_order_status_change
     *
     * @author yujie
     * @date 2023/07/11 15:44
     */
    void add(OrderStatusChangeParam orderStatusChangeParam);

    /**
     * 删除tt_order_status_change
     *
     * @author yujie
     * @date 2023/07/11 15:44
     */
    void delete(OrderStatusChangeParam orderStatusChangeParam);

    /**
     * 编辑tt_order_status_change
     *
     * @author yujie
     * @date 2023/07/11 15:44
     */
    void edit(OrderStatusChangeParam orderStatusChangeParam);

    /**
     * 查看详情tt_order_status_change
     *
     * @author yujie
     * @date 2023/07/11 15:44
     */
    OrderStatusChange detail(OrderStatusChangeParam orderStatusChangeParam);

}